
using KeraLua;

namespace Ex
{
    public class LuaException : Exception
    {

        // private string[] lua_stack_info;

        [Obsolete("有lua内存泄露风险")]
        public LuaException(string message) : base(message)
        {
            // lua_stack_info = Array.Empty<string>();
        }

        public LuaException(string message, EnvLua env) : base(message)
        {
            // lua_stack_info = env.GetStackInfo().ToArray();
            env.Current.Pop(env.Current.GetTop());
        }
    }
}
